Optimal. Leaf size=70 \[ -\frac {\sqrt {a-a \cos (x)}}{2 x^2}-\frac {\sqrt {a-a \cos (x)} \cot \left (\frac {x}{2}\right )}{4 x}-\frac {1}{8} \sqrt {a-a \cos (x)} \csc \left (\frac {x}{2}\right ) \text {Si}\left (\frac {x}{2}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 70, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3400, 3378,
3380} \begin {gather*} -\frac {1}{8} \text {Si}\left (\frac {x}{2}\right ) \csc \left (\frac {x}{2}\right ) \sqrt {a-a \cos (x)}-\frac {\sqrt {a-a \cos (x)}}{2 x^2}-\frac {\cot \left (\frac {x}{2}\right ) \sqrt {a-a \cos (x)}}{4 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3378
Rule 3380
Rule 3400
Rubi steps
\begin {align*} \int \frac {\sqrt {a-a \cos (x)}}{x^3} \, dx &=\left (\sqrt {a-a \cos (x)} \csc \left (\frac {x}{2}\right )\right ) \int \frac {\sin \left (\frac {x}{2}\right )}{x^3} \, dx\\ &=-\frac {\sqrt {a-a \cos (x)}}{2 x^2}+\frac {1}{4} \left (\sqrt {a-a \cos (x)} \csc \left (\frac {x}{2}\right )\right ) \int \frac {\cos \left (\frac {x}{2}\right )}{x^2} \, dx\\ &=-\frac {\sqrt {a-a \cos (x)}}{2 x^2}-\frac {\sqrt {a-a \cos (x)} \cot \left (\frac {x}{2}\right )}{4 x}-\frac {1}{8} \left (\sqrt {a-a \cos (x)} \csc \left (\frac {x}{2}\right )\right ) \int \frac {\sin \left (\frac {x}{2}\right )}{x} \, dx\\ &=-\frac {\sqrt {a-a \cos (x)}}{2 x^2}-\frac {\sqrt {a-a \cos (x)} \cot \left (\frac {x}{2}\right )}{4 x}-\frac {1}{8} \sqrt {a-a \cos (x)} \csc \left (\frac {x}{2}\right ) \text {Si}\left (\frac {x}{2}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 45, normalized size = 0.64 \begin {gather*} -\frac {\sqrt {a-a \cos (x)} \left (4+2 x \cot \left (\frac {x}{2}\right )+x^2 \csc \left (\frac {x}{2}\right ) \text {Si}\left (\frac {x}{2}\right )\right )}{8 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int \frac {\sqrt {a -a \cos \left (x \right )}}{x^{3}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {- a \left (\cos {\left (x \right )} - 1\right )}}{x^{3}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.48, size = 48, normalized size = 0.69 \begin {gather*} -\frac {\sqrt {2} {\left (x^{2} \mathrm {sgn}\left (\sin \left (\frac {1}{2} \, x\right )\right ) \operatorname {Si}\left (\frac {1}{2} \, x\right ) + 2 \, x \cos \left (\frac {1}{2} \, x\right ) \mathrm {sgn}\left (\sin \left (\frac {1}{2} \, x\right )\right ) + 4 \, \mathrm {sgn}\left (\sin \left (\frac {1}{2} \, x\right )\right ) \sin \left (\frac {1}{2} \, x\right )\right )} \sqrt {a}}{8 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\sqrt {a-a\,\cos \left (x\right )}}{x^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________